import java.awt.Cursor;
import java.awt.Dimension;

import javax.swing.JFrame;

public class HuntPanelMain {
	public static void main(String[] args) {
		JFrame frame = new JFrame("Hunting Game");
		HuntPanel huntPanel = new HuntPanel(new Player(1000));

		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));
		// create JFrame object and set close operation;
		frame.getContentPane().add(huntPanel);
		frame.setPreferredSize(new Dimension(500, 325));
		// set frame layout placing turtlePanel in center and remote in north

		frame.pack();
		frame.setVisible(true);
		// packs frame and displays
		
		// runs the game
		huntPanel.run();
	}
}
